home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / hplip.preinst < prev    next >
Encoding:
Text File  |  2007-04-04  |  962 b   |  41 lines

  1. #! /bin/sh
  2. # preinst script for hplip
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <new-preinst> `install'
  10. #        * <new-preinst> `install' <old-version>
  11. #        * <new-preinst> `upgrade' <old-version>
  12. #        * <old-preinst> `abort-upgrade' <new-version>
  13. #
  14. # for details, see http://www.debian.org/doc/debian-policy/ or
  15. # the debian-policy package
  16.  
  17. case "$1" in
  18.     upgrade|install|abort-upgrade)
  19.     # Remove symlink, dpkg doesn't like it at all
  20.     if [ -h /usr/share/doc/hplip ]; then
  21.         rm -f /usr/share/doc/hplip
  22.     fi
  23.     # Kill any pre-compiled python crap which WILL bite us in the arse
  24.     [ -d /usr/lib/hplip ] && \
  25.         find /usr/lib/hplip \( -name '*.pyc' -o -name '*.pyo' \) \
  26.             -exec rm -f {} \;
  27.     ;;
  28.  
  29.     *)
  30.         echo "preinst called with unknown argument \`$1'" >&2
  31.         exit 1
  32.     ;;
  33. esac
  34.  
  35. # dh_installdeb will replace this with shell code automatically
  36. # generated by other debhelper scripts.
  37.  
  38.  
  39.  
  40. exit 0
  41.